package annotations.PluggableAnnotationTest;

import javax.annotation.processing.*;
import javax.lang.model.SourceVersion;
import javax.lang.model.element.TypeElement;
import java.util.Set;

@SupportedAnnotationTypes(value={"annotations.PluggableAnnotationTest.Test"})
@SupportedSourceVersion(value= SourceVersion.RELEASE_8)
public class AnnotationProcessor extends AbstractProcessor{
    @Override
    public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
        System.out.println("Log in annotations.PluggableAnnotationTest.AnnotationProcessor.prcess");
        for(TypeElement typeElement:annotations){
            System.out.println(typeElement);
        }
        System.out.println(roundEnv);
        return true;
    }
}
